/*
 * Copyright (c) 2010 CCX(China) Co.,Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * CCX(China) Co.,Ltd. ("Confidential Information").
 * It may not be copied or reproduced in any manner without the express 
 * written permission of CCX(China) Co.,Ltd.
 *
 * Author: zhaosj
 * Date: 2010-11-23 下午02:22:40
 */
package com.filesystem;

import java.io.File;
import java.io.FileOutputStream;

import javax.swing.filechooser.FileSystemView;

/**
 * @author zhaosj
 *
 */
public class FilePath {
	
	public static void main(String[] args) {
		
		try {
			
			FileSystemView fsv = FileSystemView.getFileSystemView();
			File root = fsv.getHomeDirectory();
			
			String maPath = root.getPath()+"\\MA\\" ;
			File ma = new File(maPath);
			if (!ma.exists())
				ma.mkdirs();
			
			System.out.println(root.getPath());
			
			FileOutputStream fos = new FileOutputStream(maPath + "1.txt ");
			
			fos.write(97);
			fos.close();
			
		} catch (Exception e) {
			
			e.printStackTrace();
		}
	}

}
